<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zing Menu</title>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php 
include("connect.php");

?>
 <?php
	  
		function Menu($cap = 0,$gach = '&gt;&gt;  ', $arr = NULL){  
		if(!$arr) $arr = array();//khoi tao 1 array co ten la arr  
		$sql = mysql_query("SELECT * FROM topic WHERE IsDeleted = 0 and ParentID = ".$cap." order by OrderIndex");  
		while($row = mysql_fetch_assoc($sql)){  
		$arr[] = array('id'=>$row['TopicID'],'ten'=>$gach.$row['TopicName']);  
		$arr = Menu($row['TopicID'],$gach.'&gt;&gt;   ',$arr);  
		}  
		return $arr;  
		}  
		$Menu = Menu(0);  

		 foreach($Menu as $k=>$row)
		 {
		 ?>
		 <option value="<?php echo $row["id"]; ?>"><?php echo $row["ten"]; ?></option>
		<?php
		 }
		?> 
<div style="margin-left:auto; margin-right:auto; width:980px">
  <ul id="MenuBar1" class="MenuBarHorizontal">
	  <!--<li><a href="#">Trang chủ</a>    </li>
	  <li><a href="#" class="MenuBarItemSubmenu">X&atilde; hội</a>
	    <ul>
          <li><a href="#">Kinh tế</a></li>
          <li><a href="#">Ch&iacute;nh trị</a></li>
          <li><a href="#">&#272;ời sống</a></li>
	    </ul>
	  </li> -->
         
      <li><a href="#" class="MenuBarItemSubmenu">Thể thao</a>
        <ul>
        
          <li><a href="#" class="MenuBarItemSubmenu">B&oacute;ng &#273;&aacute;</a>
            <ul>
              <li><a href="#">Super League</a></li>
              <li><a href="#">Hạng Nhất</a></li>
              <li><a href="#">Ngoại hạng Anh</a></li>
            </ul>
          </li>
          <li><a href="#">Quần vợt</a>          </li>
          <li><a href="#">Golf</a></li>
          <li><a href="#">&#272;ua xe</a></li>
		</ul>
      </li>
      <!--
      <li><a href="#" class="MenuBarItemSubmenu">&Acirc;m nhạc</a>
        <ul>
          <li><a href="#" class="MenuBarItemSubmenu">Trong n&#432;ớc</a>
            <ul>
              <li><a href="#">VPOP</a></li>
              <li><a href="#">VietNam Idol</a></li>
            </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Quốc tế</a>
            <ul>
              <li><a href="#">KPOP</a></li>
              <li><a href="#">Grammy</a></li>
            </ul>
          </li>
        </ul>
      </li>
    <li><a href="#">&#272;iện ảnh</a></li>
<li><a href="#">Gi&aacute;o dục</a></li>
    <li><a href="#">C&ocirc;ng nghệ</a></li>
    <li><a href="#">Sức khỏe</a></li>
    <li><a href="#">H&igrave;nh sự</a></li>
    <li><a href="#">Chuyện lạ</a></li>
    <li><a href="#">Vui-C&#432;ời</a></li>
<li><a href="#">Li&ecirc;n hệ</a></li> -->
  </ul>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
